package org.inspursc.s0517.health.evaluation.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * institution assessment
 */
@Data
public class InsSurveyAnswerDTO implements Serializable {

    private Integer id;

    //assessment organization id
    @NotNull(message = "not null")
    private Integer organizationId;

    //appraiser id
    private Integer appraiserId;

    //survey id
    @NotNull(message = "not null")
    private Integer surveyId;

    //survey name
    @NotEmpty(message = "not null")
    private String surveyName;

    // assessment date
    private Date dateTime;

    //questions list
    @NotEmpty
    @Valid
    private List<InsAnRadioDTO> questions;

}
